<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2007 XBRL International. All Rights Reserved. -->
<?xml-stylesheet type="text/xsl" href="../../infrastructure/test.xsl"?>
<testcase
  xmlns="http://xbrl.org/2008/conformance"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://xbrl.org/2008/conformance ../../infrastructure/test.xsd"
  xmlns:xbrlfe="http://xbrl.org/2008/formula/error"
  xmlns:binding="http://xbrl.org/2008/binding/errors"
  xmlns:label="http://xbrl.org/2008/label/errors"
  xmlns:reference="http://xbrl.org/2008/reference/errors"  
  >
  <creator>
    <name>Herm Fischer</name>
    <email>fischer@markv.com</email>
  </creator>
  <number>0015</number>
  <name>Movement accounting pattern</name>
  <description>
    Compute an ending balance from a starting balance and changes.  Involves cross context period filtering and establishing the instant date of resulting ending balance.
  </description>
  <reference specification="FORMULA" id="sec-formula"/>

  <variation id="V-01">
    <name>Ending balance := (Starting balance + Changes)</name>
    <description>
      This accounting pattern example demonstrates the use of
      cross context period operations.  The starting balance
      is an instant period.  Changes are duration, and filtering
      matches changes start data to the beginning balance period's
      instant date.  The resulting fact is given an instant date
      of the changes period end date.
    </description>
    <reference specification="FORMULA" id="sec-formula"/>
    <data>
      <schema>concepts.xsd</schema>
      <linkbase>formulae.xml</linkbase>
      <instance readMeFirst="true">instance.xml</instance>
    </data>
    <result>
      <instance>result.xml</instance>
    </result>
  </variation>  

</testcase>